<div id="leftMenu">
		<div id="links">
			<table>
				<tr>

					<td>
						<?php $nb = $params['user']->getUnreadConversations(); 
						if($nb!=0) {?>
						<span class="notifmessage"><?php echo $nb; ?></span>
						<?php } ?>
						<a href="index.php?control=message&action=view"><img src="images/message.png" alt="" title="Mes messages"/></a>
					</td>
					<td><a href="index.php?control=groupe&action=view"><img src="images/groups.png" alt="" title="Mes groupes"/></a></td>
					<td><a href="index.php?control=user&action=favoris"><img src="images/star.png"  alt="" title="Mes posts favoris"/></a></td>
				</tr>
			</table>
		</div>
		<div id="arrow">&nbsp;</div>
		<div class="content">
			<div class="rubrique">
				<h3><img src="images/star.png" alt=""/>Top des salles<span class="toggleHide">&nbsp;</span></h3>
				<ul>
				<?php foreach($params['topsalles'] as $topSalles) { ?>
					<li><a href="index.php?control=salle&action=view&args[]=<?php echo $topSalles->getId();?>"><?php echo substr($topSalles->getNom(),0,20).'...';?></a>
						<span class="auteur"> par <a href="index.php?control=user&action=profil&args[]=<?php echo $topSalles->getCreateurId();?>"><?php $auteur = $topSalles->getAuthor(); echo $auteur['PSEUDO'];?></a>
						</span>
					</li>
						<?php } ?>
				</ul>
			</div>
			<div class="rubrique">
				<h3><img src="images/star.png" alt=""/>Post les plus aimés<span class="toggleHide">&nbsp;</span></h3>
				<ul>
					<?php foreach($params['topmessages'] as $topMessages) { ?>
					<li><a href="index.php?control=salle&action=view&args[]=<?php echo $topMessages->getSalleId()."#".$topMessages->getMessageId();?>"><?php echo substr($topMessages->getTitle(),0,20).'...';?></a>
						<span class="auteur"> par <a href="index.php?control=user&action=profil&args[]=<?php echo $topMessages->getUserId();?>"><?php $auteur = $topMessages->getAuthor(); echo $auteur['PSEUDO'];?></a>
						</span>
					</li>
					<?php } ?>

				</ul>
			</div>
			<div class="rubrique">
				<h3><img src="images/star.png" alt=""/>Utilisateurs connectés :<span class="toggleHide">&nbsp;</span></h3>
				<ul>
					<?php foreach($params['connectedUsers'] as $connectedUsers) { ?>
					<li><a href="index.php?control=user&action=profil&args[]=<?php echo $connectedUsers->getId();?>"><?php echo $connectedUsers->getPseudo(); ?></a>
					</li>
					<?php } ?>
				</ul>
			</div>
		</div>
</div>